﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GtsServer.Common;
using GtsServer.DAL;

namespace GtsServer.Charge.Api
{
    public partial class SzfCallBack : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string orderId = Request.Params.Get("orderId");
            string payResult = Request.Params.Get("payResult");

            OrderDAL orderDAL = new OrderDAL();
            if (!string.IsNullOrEmpty(orderId))
                orderDAL.UpdateOrderStutas(orderId, Convert.ToInt32(payResult));
            Response.Write(orderId);
        }
    }
}